<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8" />
		<title>请假表单</title>
		<div th:replace="common/common_form_header"></div>
		<script type="text/javascript">
			$(function(){
				
			});
			
			function submit(){
				var url = "";
				$('#myForm').form('submit', {
				    url:url,
				    onSubmit: function(){
						// do some check
						// return false to prevent submit;
				    },
				    success:function(data){
						alert(data)
				    }
				});
			}
		</script>
	</head>
	<body style="padding:15px">
		<form id="myForm" method="post">
			<table >
				<tr>
					<td>请假事由</td>
					<td><input name="title" id="title" class="easyui-validatebox"/></td>
					<td>请假类型</td>
					<td><input name="leaveType" id="leaveType" /></td>
				</tr>
				<tr>
					<td>请假时间</td>
					<td>
						<input name="leaveStart" id="leaveStart" class="easyui-datebox" />
						<input name="leaveEnd" id="leaveEnd" class="easyui-datebox"/>
					</td>
					<td>请假天数</td>
					<td><input name="leaveDays" id="leaveDays" /></td>
				</tr>
				<tr>
					<td>备注</td>
					<td colspan="3">
						<input name="memo" id="memo" />
					</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="3">
						<a onclick="submit()" class="easyui-linkbutton c8" style="width:70px" >提交</a>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>